/**
 * Copyright 2009 the original author or authors.
 *
 * Licensed under the GPL License, Version 3.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.gnu.org/licenses/lgpl-3.0.txt
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.guardianapis.api.client;


public class GuardianConstants {

	/*******************************************************************************
	 * Constants
	 *******************************************************************************/

	public static final String URL_PATH_SEPERATOR = "/";
	public static final String URL_PARAM_INITIALIZER = "?";
	public static final String URL_PARAM_SEPERATOR = "&";

	public final static String DEFAULT_CONTENT_API_BASEURL = "http://api.guardianapis.com/content";
	public final static String DEFAULT_CONTENT_API_KEY = "invalidkey";
	public final static String DEFAULT_SEARCH_API_URL = "search";
	public final static String DEFAULT_CONTENT_API_URL = "content";
	public final static String DEFAULT_ALL_SUBJECTS_API_URL = "all-subjects";

	public final static String URL_DATE_FORMAT = "yyyyMMdd";
	
	public final static int DEFAULT_CONNECTION_TIMEOUT = 60000;
	public final static int DEFAULT_EXECUTION_TIMEOUT = 60000;
	public final static int DEFAULT_MAX_CONNECTIONS_PER_HOST = 10;
	public final static int DEFAULT_TOTAL_MAX_CONNECTIONS = DEFAULT_MAX_CONNECTIONS_PER_HOST;
	
	public final static int NUM_CHARACTERS_TO_LOG_FROM_STREAM = 60;
	
	public static final String SPRING_CLIENT_CONFIGURATION_FILE = "guardian-content-client.xml";
	public static final String SPRING_CACHING_CONFIGURATION_FILE = "guardian-content-client-caching.xml";
	public static final String GUARDIAN_CLIENT_BEAN_NAME = "guardianContentClient";
	public static final String GUARDIAN_CLIENT_XMLBEANS_BEAN_NAME = "xmlBeansGuardianContentClient";
	
	public static final String JAXB_DOMAIN_OBJECTS_PACKAGE = "com.guardianapis.api.domain.jaxb";

}
